﻿<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:BingMap"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Maps="using:BingMapMVVM"
    x:Class="BingMap.MainPage"
    IsTabStop="false"
    mc:Ignorable="d">
    
    <Page.Resources>
        <local:MapItemDataTemplateSelector x:Key="ItemTemplateSelector" />
    </Page.Resources>

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">

        <Maps:BindableMap x:Name="MapControl" ShapeLayers="{Binding ShapeLayers}" Credentials="" 
                          DataTemplateSelector="{StaticResource ItemTemplateSelector}" ItemsSource="{Binding Items}" />

    </Grid>
</Page>
